import request from '@/utils/request'

// 查询质检不合格单列表
export function listNcQualityDeficiency(query) {
  return request({
    url: '/business/NcQualityDeficiency/list',
    method: 'get',
    params: query
  })
}

// 查询质检不合格单详细
export function getNcQualityDeficiency(id) {
  return request({
    url: '/business/NcQualityDeficiency/' + id,
    method: 'get'
  })
}

// 新增质检不合格单
export function addNcQualityDeficiency(data) {
  return request({
    url: '/business/NcQualityDeficiency',
    method: 'post',
    data: data
  })
}

// 修改质检不合格单
export function updateNcQualityDeficiency(data) {
  return request({
    url: '/business/NcQualityDeficiency',
    method: 'put',
    data: data
  })
}

// 删除质检不合格单
export function delNcQualityDeficiency(id) {
  return request({
    url: '/business/NcQualityDeficiency/' + id,
    method: 'delete'
  })
}
